#define _CRT_SECURE_NO_WARNINGS 1

#include "binaryTree.h"

int main()
{
	BTDataType* a = (BTDataType*)malloc(sizeof(BTDataType) * 18);
	if (a == NULL)
	{
		perror("a malloc");
		return 0;
	}
	a = "ABD##E#H##CF##G##";
	int len = strlen(a);
	int i = 0;
	BTNode* root = BinaryTreeCreate(a, len, &i);
	int sz = BinaryTreeSize(root);
	int lfsz = BinaryTreeLeafSize(root);
	int ksz = BinaryTreeLevelKSize(root, 3);
	BTNode* find = BinaryTreeFind(root, 'I');

	BinaryTreeDestory(&root);
	free(a);
	a = NULL;
	return 0;
}